function getSeqAdaptorArray() {
    return [
        ['1', 'Illumina Genomic'],
        ['2', 'Illumina RAD'],
        ['3', 'SOLiD RAD P2 Barcode'],
        ['4', 'SOLiD RAD P1 Barcode'],
        ['5', 'SOLiD Blunt'],
        ['N/A', 'N/A']
    ];
}

function getSeqShearMethodArray() {
    return  [
        ['1', 'Covaris'],
        ['2', 'Bioruptor'],
        ['3', 'Nebulizer'],
        ['4', 'Fragmentase'],
        ['5', 'Restriction Enzyme']
    ];
}

function getSeqRegGenomeArray() {
    return  [
        ['Yeast S288C', '1'],
        ['Yeast rm11-1a', '2'],
        ['Human NCBI', '3'],
        ['HPhix', '4'],
        ['Mouse mm9', '5'],
    ];
}
function getSeqPrimerArray() {
    return [
        ['Genomic DNA Sequencing Primer','Genomic DNA Sequencing Primer'],
        ['Small RNA Sequencing Primer','Small RNA Sequencing Primer'],
        ['DpnII Gex Sequencing Primer','DpnII Gex Sequencing Primer'],
        ['NlaIII Gex Sequencing Primer','NlaIII Gex Sequencing Primer']
    ];
}

function getProgenyStatusArray() {
    return [
        ['BLANK', 'BLANK'],
        ['INVIABLE', 'INVIABLE'],
        ['VIABLE', 'VIABLE']
    ];
}

function getYesNoUnArray() {
    return [
        ['Yes', 'Yes'],
        ['No', 'No'],
        ['Undetermined', 'Undetermined']
    ];
}

function getSliderTypeArray() {
    return [
        ['1', '1'],
        ['1/4', '1/4'],
        ['1/8', '1/8']
    ];
}

function getDudleyProjectArray() {
    return [
        ['19', 'Dudley Natural Variation'],
        ['33', 'Dudley NV Multiplex RAD'],
        ['30', 'Dudley NV Paired End'],
        ['6',  'Dudley RM-11'],
        ['15', 'Dudley RNA Detection']
    ];
}

function getSamplePrepArray() {
    return [
        ['1', 'ChIP-Seq'],
        ['2', 'Tag Profiling NlaIII'],
        ['3', 'Tag Profiling DpnII'],
        ['4', 'Genomic DNA'],
        ['5', 'Small RNA'],
        ['6', 'Phix Control'],
        ['7', 'NucleosomeSeq'],
        ['8', 'mRNASeq'],
        ['9', 'Dudley Paired End'],
        ['10', 'Genomic DNA Multiplex RAD'],
        ['11', 'Genomic DNA Paired End Multiplex RAD'],
        ['SOLiD Mate-Paired', 'SOLiD Mate-Paired'],
        ['SOLiD Fragment BC_5', 'SOLiD Fragment BC_5'],
        ['SOLiD Paired End BC_5', 'SOLiD Paired End BC_5'],
        ['SOLiD Paired End BC_10', 'SOLiD Paired End BC_10'],
        ['SOLiD Sequencing F3', 'SOLiD Sequencing F3'],
        ['SOLiD Paired End Seq', 'SOLiD Paired End Seq']
    ];
}

function getSeqKitArray() {
    return [
        ['SOLiD Mate-Paired', 'SOLiD Mate-Paired'],
        ['SOLiD Fragment BC_5', 'SOLiD Fragment BC_5'],
        ['SOLiD Paired End BC_5', 'SOLiD Paired End BC_5'],
        ['SOLiD Paired End BC_10', 'SOLiD Paired End BC_10'],
        ['SOLiD Sequencing F3', 'SOLiD Sequencing F3'],
        ['SOLiD Paired End Seq', 'SOLiD Paired End Seq']
    ];
}

function getIsCeresiaeArray() {
    return [
        ['Yes', 'Yes'],
        ['No', 'No'],
        ['Probable', 'Probable'],
        ['Undetermined', 'Undetermined']
    ];
}

function getRadVersionArray() {
    return [
        ['rad.1', 'rad.1'],
        ['rad.2', 'rad.2'],
        ['rad.3', 'rad.3'],
        ['rad.4', 'rad.4']
    ];
}


function getKanNatArray() {
    return [
        ['Kan', 'Kan'],
        ['Nat', 'Nat']
    ];
}

function getQCFailureArray() {
    return [
        ['Genotype', 'Genotype'],
        ['Contamination', 'Contamination'],
        ['Other', 'Other']
    ];
}

function getPlasmidYeastOriginArray() {
    return [
        ['None', 'None'],
        ['Cen', 'Cen'],
        ['2 Micron', '2 Micron']
    ];
}

var matingTypeStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getMatingTypeArray()
});

var plasmidYeastOriginStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getPlasmidYeastOriginArray()
});

var countryStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getCountryArray()
});

//var yoStatusArray = getYOStrainStatusArray();
var yoStatusStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getYOStrainStatusArray()
});


var isSCTypeStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getYesNoUnArray()
});

var yesNoStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getIsCeresiaeArray()
});

var radVersionStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getRadVersionArray()
});


var qcFailureReasonStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getQCFailureArray()
});

var ploidyStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getPloidyArray()
});


var ploidyDeterminationStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getPloidyDeterminationArray()
});

var matingDeterminationStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getMatingTypeDeterminationArray()
});

var ceresiaeDeterminationStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getCeresiaeDeterminationArray()
});


var environmentSourceStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getEnvSourceArray()
});


function getDisruptionModeArray() {
    return [
        ['Inactive Allele', 'Inactive Allele'],
        ['HYG', 'HYG'],
        ['DSD', 'DSD']
    ];
}

function getYOStrainStatusArray() {
    return [
        ['Initial Isolate', 'Initial Isolate'],
        ['Homozygous Diploid', 'Homozygous Diploid'],
        ['HO- Hemizygous', 'HO- Hemizygous'],
        ['HO- Haploid', 'HO- Haploid'],
        ['SPS2-GFP Tagged KAN', 'SPS2-GFP Tagged KAN'],
        ['SPS2-GFP Tagged NAT', 'SPS2-GFP Tagged NAT'],
        ['KAN Haploid Candidate', 'KAN Haploid Candidate'],
        ['NAT Haploid Candidate', 'NAT Haploid Candidate'],
        ['Special Progeny', 'Special Progeny'],
        ['Not Natural Variant', 'Not Natural Variant'],
        ['Not S. cerevisiae', 'Not S. cerevisiae'],
        ['Undetermined','Undetermined']
    ];
}


function getMatingTypeArray() {
    return [
        ['A', 'A'],
        ['alpha', 'alpha'],
        ['A/A', 'A/A'],
        ['alpha/alpha', 'alpha/alpha'],
        ['A/alpha', 'A/alpha'],
        ['Undetermined', 'Undetermined']
    ];
}

function getMatingTypeDeterminationArray() {
    return [
        ['PCR', 'PCR'],
        ['Mating test', 'Mating test'],
        ['Unknown', 'Unknown']
    ];
}

function getCeresiaeDeterminationArray() {
    return [
        ['Genotyping-Sequencing', 'Genotyping-Sequencing'],
        ['Restriction Digestion', 'Restriction Digestion']
    ];
}

function getPloidyArray() {
    return [
        ['Haploid', 'Haploid'],
        ['Diploid', 'Diploid'],
        ['Aneuploid', 'Aneuploid'],
        ['Undetermined', 'Undetermined']
    ];
}

function getPloidyDeterminationArray() {
    return [
        ['FACS', 'FACS'],
        ['Sequencing', 'Sequencing'],
        ['Unknown', 'Unknown']
    ];
}

function getEnvSourceArray() {
    return [
        ['Fermentation', 'Fermentation'],
        ['Natural Resource', 'Natural Resource'],
        ['Clinical Isolate', 'Clinical Isolate'],
        ['Food', 'Food'],
        ['Unknown', 'Unknown']
    ];
}

var continentArray = [
    ['Unknown','Unknown'],
    ['Africa','Africa'],
    ['Antarctica','Antarctica'],
    ['Asia','Asia'],
    ['Oceania','Oceania'],
    ['Europe','Europe'],
    ['North America','North America'],
    ['South America','South America']
];
var continentStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : continentArray
});

var sptypeArray = [
    ['Personal','Personal'],
    ['System','System']
];
var sptypeStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : sptypeArray
});

function getCountryArray() {
    return [
        ['Unknown','Unknown'],
        ['Afghanistan','Afghanistan'],
        ['Albania','Albania'],
        ['Algeria','Algeria'],
        ['Andorra','Andorra'],
        ['Angola','Angola'],
        ['Antigua Deps','Antigua Deps'],
        ['Argentina','Argentina'],
        ['Armenia','Armenia'],
        ['Australia','Australia'],
        ['Austria','Austria'],
        ['Azerbaijan','Azerbaijan'],
        ['Bahamas','Bahamas'],
        ['Bahrain','Bahrain'],
        ['Bangladesh','Bangladesh'],
        ['Barbados','Barbados'],
        ['Belarus','Belarus'],
        ['Belgium','Belgium'],
        ['Belize','Belize'],
        ['Benin','Benin'],
        ['Bhutan','Bhutan'],
        ['Bolivia','Bolivia'],
        ['Bosnia Herzegovina','Bosnia Herzegovina'],
        ['Botswana','Botswana'],
        ['Brazil','Brazil'],
        ['Brunei','Brunei'],
        ['Bulgaria','Bulgaria'],
        ['Burkina','Burkina'],
        ['Burundi','Burundi'],
        ['Cambodia','Cambodia'],
        ['Cameroon','Cameroon'],
        ['Canada','Canada'],
        ['Cape Verde','Cape Verde'],
        ['Central African Rep','Central African Rep'],
        ['Chad','Chad'],
        ['Chile','Chile'],
        ['China','China'],
        ['Colombia','Colombia'],
        ['Comoros','Comoros'],
        ['Congo','Congo'],
        ['Congo Democratic Rep','Congo Democratic Rep'],
        ['Costa Rica','Costa Rica'],
        ['Croatia','Croatia'],
        ['Cuba','Cuba'],
        ['Cyprus','Cyprus'],
        ['Czech Republic','Czech Republic'],
        ['Denmark','Denmark'],
        ['Djibouti','Djibouti'],
        ['Dominica','Dominica'],
        ['Dominican Republic','Dominican Republic'],
        ['East Timor','East Timor'],
        ['Ecuador','Ecuador'],
        ['Egypt','Egypt'],
        ['El Salvador','El Salvador'],
        ['Equatorial Guinea','Equatorial Guinea'],
        ['Eritrea','Eritrea'],
        ['Estonia','Estonia'],
        ['Ethiopia','Ethiopia'],
        ['Fiji','Fiji'],
        ['Finland','Finland'],
        ['France','France'],
        ['Gabon','Gabon'],
        ['Gambia','Gambia'],
        ['Georgia','Georgia'],
        ['Germany','Germany'],
        ['Ghana','Ghana'],
        ['Greece','Greece'],
        ['Grenada','Grenada'],
        ['Guatemala','Guatemala'],
        ['Guinea','Guinea'],
        ['Guinea-Bissau','Guinea-Bissau'],
        ['Guyana','Guyana'],
        ['Haiti','Haiti'],
        ['Honduras','Honduras'],
        ['Hungary','Hungary'],
        ['Iceland','Iceland'],
        ['India','India'],
        ['Indonesia','Indonesia'],
        ['Iran','Iran'],
        ['Iraq','Iraq'],
        ['Ireland Republic','Ireland Republic'],
        ['Israel','Israel'],
        ['Italy','Italy'],
        ['Ivory Coast','Ivory Coast'],
        ['Jamaica','Jamaica'],
        ['Japan','Japan'],
        ['Jordan','Jordan'],
        ['Kazakhstan','Kazakhstan'],
        ['Kenya','Kenya'],
        ['Kiribati','Kiribati'],
        ['Korea North','Korea North'],
        ['Korea South','Korea South'],
        ['Kosovo','Kosovo'],
        ['Kuwait','Kuwait'],
        ['Kyrgyzstan','Kyrgyzstan'],
        ['Laos','Laos'],
        ['Latvia','Latvia'],
        ['Lebanon','Lebanon'],
        ['Lesotho','Lesotho'],
        ['Liberia','Liberia'],
        ['Libya','Libya'],
        ['Liechtenstein','Liechtenstein'],
        ['Lithuania','Lithuania'],
        ['Luxembourg','Luxembourg'],
        ['Macedonia','Macedonia'],
        ['Madagascar','Madagascar'],
        ['Malawi','Malawi'],
        ['Malaysia','Malaysia'],
        ['Maldives','Maldives'],
        ['Mali','Mali'],
        ['Malta','Malta'],
        ['Marshall Islands','Marshall Islands'],
        ['Mauritania','Mauritania'],
        ['Mauritius','Mauritius'],
        ['Mexico','Mexico'],
        ['Micronesia','Micronesia'],
        ['Moldova','Moldova'],
        ['Monaco','Monaco'],
        ['Mongolia','Mongolia'],
        ['Montenegro','Montenegro'],
        ['Morocco','Morocco'],
        ['Mozambique','Mozambique'],
        ['Myanmar, Burma','Myanmar, Burma'],
        ['Namibia','Namibia'],
        ['Nauru','Nauru'],
        ['Nepal','Nepal'],
        ['Netherlands','Netherlands'],
        ['New Zealand','New Zealand'],
        ['Nicaragua','Nicaragua'],
        ['Niger','Niger'],
        ['Nigeria','Nigeria'],
        ['Norway','Norway'],
        ['Oman','Oman'],
        ['Pakistan','Pakistan'],
        ['Palau','Palau'],
        ['Panama','Panama'],
        ['Papua New Guinea','Papua New Guinea'],
        ['Paraguay','Paraguay'],
        ['Peru','Peru'],
        ['Philippines','Philippines'],
        ['Poland','Poland'],
        ['Portugal','Portugal'],
        ['Qatar','Qatar'],
        ['Romania','Romania'],
        ['Russian Federation','Russian Federation'],
        ['Rwanda','Rwanda'],
        ['St Kitts Nevis','St Kitts Nevis'],
        ['St Lucia','St Lucia'],
        ['Saint Vincent the Grenadines','Saint Vincent the Grenadines'],
        ['Samoa','Samoa'],
        ['San Marino','San Marino'],
        ['Sao Tome Principe','Sao Tome Principe'],
        ['Saudi Arabia','Saudi Arabia'],
        ['Senegal','Senegal'],
        ['Serbia','Serbia'],
        ['Seychelles','Seychelles'],
        ['Sierra Leone','Sierra Leone'],
        ['Singapore','Singapore'],
        ['Slovakia','Slovakia'],
        ['Slovenia','Slovenia'],
        ['Solomon Islands','Solomon Islands'],
        ['Somalia','Somalia'],
        ['South Africa','South Africa'],
        ['Spain','Spain'],
        ['Sri Lanka','Sri Lanka'],
        ['Sudan','Sudan'],
        ['Suriname','Suriname'],
        ['Swaziland','Swaziland'],
        ['Sweden','Sweden'],
        ['Switzerland','Switzerland'],
        ['Syria','Syria'],
        ['Taiwan','Taiwan'],
        ['Tajikistan','Tajikistan'],
        ['Tanzania','Tanzania'],
        ['Thailand','Thailand'],
        ['Togo','Togo'],
        ['Tonga','Tonga'],
        ['Trinidad Tobago','Trinidad Tobago'],
        ['Tunisia','Tunisia'],
        ['Turkey','Turkey'],
        ['Turkmenistan','Turkmenistan'],
        ['Tuvalu','Tuvalu'],
        ['Uganda','Uganda'],
        ['Ukraine','Ukraine'],
        ['United Arab Emirates','United Arab Emirates'],
        ['United Kingdom','United Kingdom'],
        ['United States','United States'],
        ['Uruguay','Uruguay'],
        ['Uzbekistan','Uzbekistan'],
        ['Vanuatu','Vanuatu'],
        ['Vatican City','Vatican City'],
        ['Venezuela','Venezuela'],
        ['Vietnam','Vietnam'],
        ['Yemen','Yemen'],
        ['Zambia','Zambia']
    ];
}

function getClassificationTypesArray() {
    return [
        ['All', 'All'],
        ['INTERGENIC', 'INTERGENIC'],
        ['nonsynonymous', 'nonsynonymous'],
        ['synonymous',  'nonsynonymous'],
        ['aa_insertion', 'aa_insertion'],
        ['aa_deletion', 'aa_deletion'],
        ['frameshift', 'frameshift'],
        ['UNKNOWN', 'UNKNOWN']
    ];
}

var classificationTypeStore = new Ext.data.SimpleStore({
    fields: ['key', 'value'],
    data : getClassificationTypesArray()
});
